Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 27
Journeyman
Journeyman
Offline
Joined: Apr 2001
Posts: 27
These two hacks could be interesting if you have a dual-language board.

The first hack allows visitors who are not logged in to switch between two languages. It also detects the language depending on the browser settings if no language cookie is found. If a user creates an account, the language he/she is currently using is written in his/her user profile.

The second one allows to define a different categories order depending on the choosen language. If you have for instance a German forum, but also a small English category, you can then define that the English category is displayed last when somebody uses the german language, and that it is displayed first when somebody uses English.


Mod Name: Dual-Language Hack 0.9
Description: Autodedects language, allows to switch between two languages, allows to specify categories order depending on the choosen language.
Working under: 6.1.1
Any pre-requisites: none
Author(s): nòóx (Hannes Schmiderer)
Demo: www.downhill-board.com (currently still 5.4.1) and www.nooxnet.com/ubbthreads.php (6.1.1)
Files Altered:
- ubbt.inc.php
- languages/*/generic.php
- adduser.php
- admin/dochangecatorder.php
- ubbthreads.php
Database Altered: no
New Files: none
Any other info: Works for two languages only. At the moment it is implemented for English and German. But it should be easy to adapt it for any other two languages.
Attachments
59453-duallanguagehack.txt (0 Bytes, 61 downloads)

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks!

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
yes, nice


- Allen wavey
- What Drives You?
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
I've just came across this. - I quite like the general idea of trying to set the default threads language like the browser's preferred language setting.

Has anybody ever got this hack running?
Looks that there are some severe bugs (like missing parenthesis)
in the code supplied with V. 0.9 here, and I had to de-install
it right again.

Noox, have you further worked on this hack on your boards?

Just curious,


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 697
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 25
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)